package ar.com.spsolutions.splilabrary.view.pages.book;

import java.util.HashMap;
import java.util.Map;

import ar.com.spsolutions.splibrary.general.RoleConverterService;
import ar.com.spsolutions.splilabrary.view.annotations.RenderAllowed;
import ar.com.spsolutions.splilabrary.view.pages.BasePage;
import ar.com.spsolutions.splilabrary.view.pages.book.gbook.GoogleBookDischargerComponent;
import ar.com.spsolutions.splilabrary.view.version2.components.MainContainer;

@RenderAllowed({ RoleConverterService.ROLE_USER })
public class BookManager extends BasePage {

	private static final long serialVersionUID = -3539717470138407155L;

	@Override
	public Map<String, Class<? extends MainContainer>> getMenues() {
		final HashMap<String, Class<? extends MainContainer>> menues = new HashMap<String, Class<? extends MainContainer>>();
		menues.put("crud", BookModificationComponent.class);
		menues.put("gbook", GoogleBookDischargerComponent.class);
		return menues;
	}

}
